package com.hoapital.outpbillwork.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hoapital.outpbillwork.module.entity.LabTestItems;
import com.hoapital.outpbillwork.module.mapper.LabTestItemsMapper;
import com.hoapital.outpbillwork.module.service.LabTestItemsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lvyao
 * @since 2021-02-25
 */
@Service
@Transactional(rollbackFor = Exception.class)
@Slf4j
public class LabTestItemsServiceImpl extends ServiceImpl<LabTestItemsMapper, LabTestItems> implements LabTestItemsService {
    @Resource
    private LabTestItemsMapper labTestItemsMapper;

    @Override
    public int getItemChargeFlag(String testNo, String itemCode) {
        return labTestItemsMapper.getItemChargeFlag(testNo, itemCode);
    }

    @Override
    public int getTestNoAllItemChargeFlag(String testNo) {
        return labTestItemsMapper.getTestNoAllItemChargeFlag(testNo);
    }

    @Override
    public int updateChargeFlag(String testNo, String itemCode) {
        return labTestItemsMapper.updateChargeFlag(testNo, itemCode);
    }
}
